﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Program12
{
    class Program
    {
        public enum Gender
        {

            男,
            女
        }
        //结构体
        public struct Person
        {
            public string Name;
            public Gender Gender;
            public int Age;
        }
        static void Main(string[] args)
        {
            //结构体是值类型
            //类是引用类型
            //结构体不用new 直接用，直接赋值
            Person person;
            person.Name = "阿西吧";
            person.Age = 22;
            person.Gender = Gender.男;

            Console.WriteLine("姓名：{0}，性别：{1}，年龄：{2}",person.Name, person.Age, person.Gender);
            Console.ReadLine();
        }
    }
}
